package 正则表达式;

/**
 * @author chihb
 * @create-time 2024/6/30 19:50
 * @description
 */
public class Pattern2 {
    public static void main(String[] args) {
        System.out.println("a".matches("[abc]"));//true
        System.out.println("e".matches("[abcd]"));//false
        System.out.println("d".matches("[^abc]"));//true
        System.out.println("a".matches("[^abc]"));//false
        System.out.println("b".matches("[a-zA-Z]"));//true
        System.out.println("2".matches("[a-zA-Z]"));//false
        System.out.println("k".matches("[a-z&&^bc]"));//true
        System.out.println("b".matches("[a-z&&^bc]"));//false
        System.out.println("徐".matches("."));//true
    }
}
